$def with(m_vals)

$var title: SIP Update from GitHub
$var page: system_update
<script>

    // Initialize behaviors
    jQuery(document).ready(function(){

    	jQuery("button#cUpdate").click(function(){
            window.location= "/UPu";
        });

        jQuery("button#cCancel").click(function(){
            window.location= "/";
    	});

        jQuery("button#docButton").click(function(){
            window.open("/static/docs/plugins/system_update-docs.html", "_blank");
        });
    });
</script>

<div id="plugin">
    <div class="title">$_(u'SIP Software Updater')
    <button class="execute" id="docButton" type="button" >$_(u'Help')</button>
    </div>
    <!--<p>$_(u'This plugin compares the local SIP version with the GitHub repository and can update the local software.')</p>-->
    <form id="pluginForm" action="${app_path('/UPsr')}" method="get">
        <table class="optionList">
            <tr>
                <td style='text-transform: none;'><b>$_(u'Remote repository'):</b></td>
                <td>
                     $m_vals["remote"]
                </td>
            </tr>
            <tr>
                <td style='text-transform: none;'><b>$_(u'Local SIP version'):</b></td>
                <td>
                     $m_vals["ver_str"]
                </td>
            </tr>
            <tr>
                <td style='text-transform: none;'><b>$_(u'Local SIP date'):</b></td>
                <td>
                     $m_vals["ver_date"]
                </td>
            </tr>
            <tr>
                <td style='text-transform: none;'>$_(u'Status'):</td>
                <td>
                    <textarea style="font-family: monospace;" rows="7" cols="100" readonly>$m_vals['status']</textarea><br/>
                    <!--<button id="cRefresh" class="refresh">$_(u'Refresh Status')</button>-->
                </td>
            </tr>
            
        </table>
    </form>
</div>
<div class="controls">
    $if m_vals['can_update']:
        <button id="cUpdate" class="options"><b>$_(u'Update SIP')</b></button>
    $else:
        <button id="cUpToDate" class="cancel"><b>$_(u'Up-to-date')</b></button>
    <button id="cCancel" class="cancel danger">$_(u'Cancel')</button>
</div>
